TEST_PERF_ROOT=/mnt/Data/Documents/CST/Projects/nscscc2022_group_v0.01/nscscc-group/perf_test_v0.01
MYCPU_PERF_ROOT=$(TEST_PERF_ROOT)/soc_axi_perf/run_vivado/mycpu_prj1
MYCPU_PERF_PRJ=$(MYCPU_PERF_ROOT)/mycpu.xpr

TEST_FUNC_ROOT=/mnt/Data/Documents/CST/Projects/nscscc2022_group_v0.01/nscscc-group/func_test_v0.01
MYCPU_FUNC_ROOT=$(TEST_FUNC_ROOT)/soc_axi_func/run_vivado/mycpu_prj1
MYCPU_FUNC_PRJ=$(MYCPU_FUNC_ROOT)/mycpu.xpr

.PHONY: sim

sim:
	vivado -mode tcl $(MYCPU_PERF_PRJ) -source ./scripts/run_sim.tcl | tee simulation.log
	rm -rf ./vivado* *.log

.PHONY: open_func
open_func:
	gnome-terminal -- vivado $(MYCPU_FUNC_PRJ)
	rm -rf ./vivado* *.log

.PHONY: open_perf
open_perf:
	gnome-terminal -- vivado $(MYCPU_PERF_PRJ) -mode tcl
	rm -rf ./vivado* *.log